package com.air.admin.service;

import java.util.List;

import com.air.admin.mo.AdminPrivilege;
import com.air.admin.mo.AdminRole;
import com.air.admin.mo.BasicAdminInfo;
import com.air.admin.vo.AdminInfoQueryRequestVO;
import com.air.common.service.IBaseService;
import com.air.common.util.QueryCondition;
import com.air.common.vo.PageResultListVO;


public interface IBasicAdminInfoService extends IBaseService{
	
	
	public BasicAdminInfo validateAdmin(String loginName,String password) throws Exception;
	
	public BasicAdminInfo registerAdmin(BasicAdminInfo adminInfo)  throws Exception; 
	
	public List<AdminPrivilege> getPrivileges(BasicAdminInfo adminInfo);
	
	public List<AdminRole> getRoles(BasicAdminInfo adminInfo);
	
	public boolean hasRelativeAdmin(List<String> roleCodeList);
	
	public PageResultListVO queryInSimpleMode(QueryCondition condition,
			Integer pageNum,Integer pageLimit,String queryString) throws Exception;
	
	public PageResultListVO queryInAdvanceMode(QueryCondition condition,
			Integer pageNum,Integer pageLimit,AdminInfoQueryRequestVO queryRequestVO) throws Exception;

	
}
